<?php
declare(strict_types=1);

namespace App\AdminApi\Modular\System\Validate;

use Zms\Validate\ValidateAbstract;

class SmsValidate extends ValidateAbstract
{
    public function rules(): array
    {
        return [
            ['KEY', 'required', 'error' => '数据异常，请刷新重试'],
            ['KEY', 'string'],

            ['TEMPLATE_ID', 'string', 'max' => 50],

            ['CONTENT', 'required'],
            ['CONTENT', 'string', 'max' => 100]
        ];
    }


    public function labels(): array
    {
        return [
            'KEY' => '调用名称',
            'CONTENT' => '模板内容',
            'TEMPLATE_ID' => '模板ID'
        ];
    }
}